

const { queryAll } = require('../service/menu.service')

class MenuController {
    async query(ctx) {

        console.log(ctx.state.emp);
        const res = await queryAll(ctx.state.emp.roleId)
        ctx.body = {
            code: '200',
            message: '菜单列表获取成功',
            data: res
        }
    }
}

module.exports = new MenuController()